package tds.model24.version1;
/**
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName ConcreteCommand
 * @Description 具体的指令
 * @author tds
 * @Date 2020/2/6 21:18
 * @version 1.0.0
 */
public class ConcreteCommand implements Command {

    private Receiver receiver;

    public ConcreteCommand(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void execute() {
        System.out.println("指令执行日志：xxx");
        receiver.action();
    }
}
